Different events appear depending on the type of object selected.